/************************************************************************
*************************************************************************
gScramble
Description:
	Included file for gScrabmle plugin
*************************************************************************
*************************************************************************
This file is part of Simple SourceMod Plugins project.

This plugin is free software: you can redistribute 
it and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the License, or
later version. 

This plugin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this plugin.  If not, see <http://www.gnu.org/licenses/>.
*************************************************************************
*************************************************************************
File Information
$Id: gscramble.inc 167 2015-02-11 08:07:10Z brutalgoergectf@gmail.com $
$Author: brutalgoergectf@gmail.com $
$Revision: 214 $
$Date: 2015-03-16 07:27:44 +0000 (Mon, 16 Mar 2015) $
$LastChangedBy: brutalgoergectf@gmail.com $
$LastChangedDate: 2015-03-16 07:27:44 +0000 (Mon, 16 Mar 2015) $
$URL: http://tf2tmng.googlecode.com/svn/trunk/gscramble/addons/sourcemod/scripting/include/gscramble.inc $
$Copyright: (c) Simple SourceMod Plugins 2008-2009$
*************************************************************************
*************************************************************************
*/

#if defined _gscramble_included
  #endinput
#endif

#define _gscramble_included

public SharedPlugin:_pl_gscramble = 
{
	name = "gscramble",
	file = "gscramble.smx",
	#if defined REQUIRE_PLUGIN
	required = 1
	#else
	required = 0
	#endif
};

public _pl_gscramble_SetNTVOptional()
{
	MarkNativeAsOptional("GS_IsClientTeamChangeBlocked");
	MarkNativeAsOptional("TF2_GetRoundTimeLeft");
}

/**
 * Checks if team swap on a client should be blocked
 *
 * @param client     Client index.
 * @param initiator  Who is initiating the team swap. 0 for server, 1 for client. if client, then it gives them a warning message
 * @return           True if blocked, false if not.
 * @errors           Invalid client index. Bots are not supported
 */
native bool:GS_IsClientTeamChangeBlocked(client, initiator);

/**
* Gets the round time left in seconds
* @return 			Time left in seconds, 0 if not tracking
* @ errors 			None
*/
native TF2_GetRoundTimeLeft();